{if condition="$question"}
<form method="post" action="updatequestion" enctype="multipart/form-data">
    <div id="preject-info">

        <table>
            <input type="hidden" name="id" value="{$question.id}">
            <tr><th>标题</th><th><input type="text" name="title" value="{$question.title}" required></th></tr>
            <tr><th></th><th><input type="submit" value="确认更新"></th></tr>
        </table>


    </div>
    <script id="contnet" name="content" style="width:99%;height: 500px" type="text/plain">{$question.content}</script>
    </form>
    {else /}
    <form method="post" enctype="multipart/form-data">
        <div id="preject-info">
        <table>
        <tr><th>标题</th><th><input type="text" name="title"  required></th></tr>
    <tr><th></th><th><input type="submit" value="确认发布"></th></tr>
    </table>
        </div>
        <script id="contnet" name="content" style="width:99%;height: 500px" type="text/plain"></script>
</form>
{/if}

